package com.datang.petstore.controller;/*
* @auther 顶风少年 
* @mail dfsn19970313@foxmail.com
* @date 2019-11-03 21:01
* @notify 
* @version 1.0
*/

import com.datang.petstore.service.impl.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("test")
    public String t(){
        testService.service1();
        return "ok";
    }
}
